package com.scommunity.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.scommunity.domain.Car;
import com.scommunity.domain.Parking;

import java.util.List;

public interface IParkingService extends IService<Parking>{
    PageInfo<Parking> all(int currentPage, int pageSize);

    Parking add(Parking parking);

    void delete(Parking parking);

    void updateN(Parking parking);

    PageInfo<Parking> getPageByCondition(Parking parking, int currentPage, int pageSize);

    Car findCarByOwnerId(Long ownerId);

    List<Parking> getByCarId(Long carId);
}
